Smush\Core\Media\Media_Item D

Total Complexity 203
Dependencies 9
Dependents 14
Total lines 1,157
Lines of code 689
Logical lines of code 324
Comment lines 219
Methods 106
Properties 26

Methods 106

Method Rating Maintainability Complexity Lines of code
prepare_errors()
A
44 11 46
make_attachment_meta()
S
50 6 28
prepare_sizes()
S
55 5 21
update_transparent_meta()
S
63 5 11
prepare_full_size()
S
53 4 23
arrays_same()
S
64 4 10
is_transparent()
S
66 3 9
update_animated_meta()
S
72 3 5
size_limit_exceeded()
S
68 3 8
get_missing_file_name()
S
67 3 8
get_array_value()
S
73 3 5
prepare_smushable_sizes()
S
66 3 9
files_exist()
S
67 3 8
prepare_scaled_size()
S
66 3 8
update_ignored_meta()
S
64 3 10
is_animated()
S
66 3 9
update_backup_sizes()
S
65 3 9
get_file_name_exceeding_limit()
S
68 3 8
has_wp_metadata()
S
70 3 6
attachment_metadata_as_size_metadata()
S
61 2 13
save()
S
63 2 12
get_post()
S
71 2 6
set_animated()
S
67 2 8
can_be_restored()
S
71 2 6
set_transparent()
S
67 2 8
is_png()
S
75 2 4
is_valid()
S
78 2 3
set_outdated()
S
71 2 6
is_outdated()
S
74 2 4
get_full_or_scaled_size()
S
74 2 5
get_original_image_path()
S
71 2 6
get_scaled_or_full_size()
S
74 2 5
get_backup_sizes()
S
72 2 6
remove_backup_size()
S
67 2 8
get_backup_sizes_meta()
S
75 2 4
fetch_post_mime_type()
S
71 2 6
update_post_mime_type()
S
65 2 10
prepare_backup_sizes()
S
64 2 10
get_errors()
S
72 2 6
get_registered_wp_sizes()
S
72 2 6
reset()
S
74 2 5
get_attached_file()
S
71 2 6
update_attached_file()
S
68 2 7
get_mime_type()
S
72 2 6
__construct()
S
64 2 10
get_wp_metadata()
S
72 2 6
is_mime_type_supported()
S
72 2 6
update_wp_metadata()
S
70 2 6
get_smushable_sizes()
S
72 2 6
get_wp_metadata_sizes()
S
71 2 6
get_missing_sizes()
S
71 2 6
get_wp_metadata_size()
S
71 2 6
get_sizes()
S
72 2 6
is_skipped()
S
77 2 4
get_edit_link()
S
72 2 6
prepare_edit_link()
S
63 2 10
is_image()
S
72 2 6
get_relative_file_dir()
S
69 2 7
get_relative_file_path()
S
72 2 6
prepare_relative_file_path()
S
68 2 7
is_ignored()
S
72 2 6
set_backup_sizes()
S
76 1 4
file_name_from_path()
S
80 1 3
get_default_backup_size()
S
80 1 3
add_backup_size()
S
65 1 9
prepare_ignored()
S
80 1 3
make_backup_sizes_meta()
S
74 1 5
fetch_wp_metadata()
S
76 1 4
get_backup_size()
S
79 1 3
remove_default_backup_size()
S
81 1 3
has_size()
S
75 1 4
has_missing_sizes()
S
80 1 3
get_size_urls()
S
74 1 5
get_size_paths()
S
74 1 5
get_id()
S
82 1 3
get_human_size_limit()
S
80 1 3
get_size_limit()
S
82 1 3
set_size_limit()
S
81 1 3
get_post_meta()
S
79 1 3
has_full_size()
S
80 1 3
set_registered_wp_sizes()
S
81 1 3
separate_original_image_path_exists()
S
73 1 5
smush_image_filter()
S
79 1 3
is_smushable_filter()
S
78 1 3
check_is_image()
S
80 1 3
animated_meta_exists()
S
76 1 4
check_is_mime_type_supported()
S
72 1 5
transparent_meta_exists()
S
76 1 4
has_attached_file()
S
80 1 3
has_animated_mime_type()
S
79 1 3
set_settings()
S
81 1 3
has_smushable_sizes()
S
80 1 3
get_main_size()
S
81 1 3
get_registered_wp_size()
S
79 1 3
set_mime_type()
S
81 1 3
get_full_size()
S
80 1 3
get_scaled_size()
S
80 1 3
get_size()
S
79 1 3
has_errors()
S
81 1 3
file_path_has_scaled_postfix()
S
78 1 3
get_dir()
S
70 1 6
get_base_url()
S
70 1 6
set_ignored()
S
76 1 4
initialize_size()
S
65 1 10
has_scaled_size()
S
80 1 3
is_large()
S
73 1 5